
package org.springxrsk.modules.classes.service.impl;

import org.springxrsk.modules.classes.pojo.entity.QyClassesRoomEntity;
import org.springxrsk.modules.classes.pojo.vo.QyClassesRoomVO;
import org.springxrsk.modules.classes.excel.QyClassesRoomExcel;
import org.springxrsk.modules.classes.mapper.QyClassesRoomMapper;
import org.springxrsk.modules.classes.service.IQyClassesRoomService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 教室管理 服务实现类
 *
 *  @author
 * @since 2024-06-15
 */
@Service
public class QyClassesRoomServiceImpl extends BaseServiceImpl<QyClassesRoomMapper, QyClassesRoomEntity> implements IQyClassesRoomService {

	@Override
	public IPage<QyClassesRoomVO> selectQyClassesRoomPage(IPage<QyClassesRoomVO> page, QyClassesRoomVO qyClassesRoom) {
		return page.setRecords(baseMapper.selectQyClassesRoomPage(page, qyClassesRoom));
	}


	@Override
	public List<QyClassesRoomExcel> exportQyClassesRoom(Wrapper<QyClassesRoomEntity> queryWrapper) {
		List<QyClassesRoomExcel> qyClassesRoomList = baseMapper.exportQyClassesRoom(queryWrapper);
		//qyClassesRoomList.forEach(qyClassesRoom -> {
		//	qyClassesRoom.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyClassesRoom.getType()));
		//});
		return qyClassesRoomList;
	}

}
